package homeworkplus.day02;

/**
 * @Classname: Test03
 * @Author: bromide
 * @CreateTime: 2022/3/29--20:28
 * @Version: V1.0
 * @Desciption: 输入一个IP地址，然后将4段数字分别输出
 */
public class Test03 {
    public static void main(String[] args) {
        String address = "192.163.1.1";
        String[] s = address.split("\\.");
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);
        }
    }
}
